<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>个人钱包</title>
    <script src="../js/mui.min.js"></script>
	<link href="../css/mui.min.css" rel="stylesheet" />
	<link rel="stylesheet" href="../css/style.css" />
	<link rel="stylesheet" href="../css/iconfont.css" />
	<link rel="stylesheet" href="../css/wallet.css" />
    <script type="text/javascript" charset="utf-8">
      	mui.init();
    </script>
</head>
<body>
	<header class="mui-bar mui-bar-nav">
	    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" href="JavaScript:history.go(-1)"></a>
	    <h1 class="mui-title">个人钱包</h1>
	</header>
	<div class="mui-content">
	    <ul class="wallet_top clearfix">
	    	<li class="yongj_record">
	    		<p class="wallet_timg"><img src="../images/icon_yongj.jpg"></p>
	    		<p>佣金</p>
	    		<p id="yj">￥</p>
	    	</li>
	    	<li class='yue_record'>
	    		<p class="wallet_timg"><img src="../images/icon_yue.jpg"></p>
	    		<p>余额</p>
	    		<p id="ye">￥</p>
	    	</li>
	    	<li class="score_record">
	    		<p class="wallet_timg"><img src="../images/icon_jif.jpg"></p>
	    		<p>鼓励金</p>
	    		<p id="jf"></p>
	    	</li>
	    </ul>
	    <div class="wallet_bottom">
	    	<div class="wallet_navbt"><i></i>线上服务</div>
	    	<ul class="mui-table-view mui-grid-view mui-grid-9">
				<!--<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-xs-4 recharge">
					<a href="javascript:;">
						<span class="mui-icon iconfont icon-icon1"></span>
						<div class="mui-media-body">余额充值</div>
					</a>
				</li>-->
				<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-xs-4 tixian">
					<a href="javascript:;">
						<span class="mui-icon iconfont icon-tixian1"></span>
						<div class="mui-media-body">余额提现</div>
					</a>
				</li>
				<!--<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-xs-4 payment">
					<a href="javascript:;">
						<span class="mui-icon iconfont icon-shoukuan1"></span>
						<div class="mui-media-body">收款</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-xs-4 card">
					<a href="javascript:;">
						<span class="mui-icon iconfont icon-wodeyinxingqia"></span>
						<div class="mui-media-body">银行卡</div>
					</a>
				</li>-->
				<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-xs-4 pay_pwd">
					<a href="javascript:;">
						<span class="mui-icon iconfont icon-password"></span>
						<div class="mui-media-body">支付密码</div>
					</a>
				</li>
				<!--<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-xs-4 shop_score">
					<a href="javascript:;">
						<span class="mui-icon iconfont icon-list_jifen"></span>
						<div class="mui-media-body">商家鼓励金</div>
					</a>
				</li>-->
				<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-xs-4 tixian_record">
					<a href="javascript:;">
						<span class="mui-icon iconfont icon-jilu"></span>
						<div class="mui-media-body">提现记录</div>
					</a>
				</li>
				<!--<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-xs-4 yue_record">
					<a href="javascript:;">
						<span class="mui-icon iconfont icon-xiaofeijilu2"></span>
						<div class="mui-media-body">余额记录</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-xs-4 score_record">
					<a href="javascript:;">
						<span class="mui-icon iconfont icon-wodejifen"></span>
						<div class="mui-media-body">鼓励金记录</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-xs-4 yongj_record">
					<a href="javascript:;">
						<span class="mui-icon iconfont icon-wodejifen"></span>
						<div class="mui-media-body">佣金记录</div>
					</a>
				</li>-->
				<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-xs-4 yongj_yue">
					<a href="javascript:;">
						<span class="mui-icon iconfont icon-tixian1"></span>
						<div class="mui-media-body">佣金转余额</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-xs-4 yue_jilu">
					<a href="javascript:;">
						<span class="mui-icon iconfont icon-tixian1"></span>
						<div class="mui-media-body">消费记录</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-xs-4 score_yue"  style="display: none;">
					<a href="javascript:;">
						<span class="mui-icon iconfont icon-tixian1"></span>
						<div class="mui-media-body">鼓励金转余额</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-xs-4" id="renzheng">
				<a href="#">
					<span class="mui-icon iconfont icon-renzheng"></span>
					<div class="mui-media-body">实名认证</div>
				</a>
				</li>
			</ul>
			<div class="wallet_navbt"><i></i>线下服务</div>
			<ul class="mui-table-view mui-grid-view mui-grid-9">
				<li class="mui-table-view-cell mui-media mui-col-xs-4" id="line_order">
					<a href="#">
						<span class="mui-icon iconfont icon-dingdan2"></span>
						<div class="mui-media-body">线下订单</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media mui-col-xs-4" id="line_chongzhi">
					<a href="#">
						<span class="mui-icon iconfont icon-chongzhijilu"></span>
						<div class="mui-media-body">充值记录</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media mui-col-xs-4" id="line_score">
					<a href="#">
						<span class="mui-icon iconfont icon-jifen2"></span>
						<div class="mui-media-body">鼓励金记录</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media mui-col-xs-4" id="line_chongci">
					<a href="#">
						<span class="mui-icon iconfont icon-dingdan3"></span>
						<div class="mui-media-body">充次记录</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media mui-col-xs-4" id="line_xiaofei">
					<a href="#">
						<span class="mui-icon iconfont icon-xiaofeijilu1"></span>
						<div class="mui-media-body">消费记录</div>
					</a>
				</li>
				<li class="mui-table-view-cell mui-media mui-col-xs-4" id="shop_score">
					<a href="#">
						<span class="mui-icon iconfont icon-jifen1"></span>
						<div class="mui-media-body">商家鼓励金</div>
					</a>
				</li>
			</ul>
	    </div>
	    
	</div>
</body>
</html>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/layer/layer.min.js"></script>
<script type="text/javascript" src="../js/app.js"></script>
<script type="text/javascript">
	//充值
	$(".recharge").click(function(){
		location.href="recharge.html";
	});
	//认证
	$("#renzheng").click(function(){
		location.href="../member/sq.html";
	});
	//提现
	$(".tixian").click(function(){
		location.href="tixian.html";
	});
	//收款
	$(".payment").click(function(){
		location.href="payment.html";
	});
	
	//银行卡
	$(".card").click(function(){
		location.href="bank.html";
	});
	//支付密码修改
	$(".pay_pwd").click(function(){
		location.href="pay_pwd.html";
	});
	//商家鼓励金
	$(".shop_score").click(function(){
		location.href="shop_score.html";
	});
	
	//提现记录
	$(".tixian_record").click(function(){
		location.href="tixian_record.html";
	});
	//余额记录
	$(".yue_record").click(function(){
		location.href="yue_jilu.html";
	});
	//鼓励金记录
	$(".score_record").click(function(){
		location.href="score_record.html";
	});
	//佣金记录
	$(".yongj_record").click(function(){
		location.href="yongj_record.html";
	});
	//佣金转余额
	$(".yongj_yue").click(function(){
		location.href="yongj_yue.html";
	});
	//鼓励金转余额
	$(".score_yue").click(function(){
		location.href="score_yue.html";
	});
	/*线下管理一栏*/
	//线下订单
	$("#line_order").click(function(){
		location.href="../line/line_orders.html";
	});
	//充值记录
	$("#line_chongzhi").click(function(){
		location.href="../line/line_chongzhi.html";
	});
	//鼓励金记录
	$("#line_score").click(function(){
		location.href="../line/line_score.html";
	});
	//充次记录
	$("#line_chongci").click(function(){
		location.href="../line/line_chongci.html";
	});
	//消费记录
	$("#line_xiaofei").click(function(){
		location.href="../line/line_xiaofei.html";
	});
	//商家鼓励金
	$("#shop_score").click(function(){
		location.href="../line/shop_socre.html";
	});
	//余额
	$(".yue_jilu").click(function(){
		location.href="yue_record.html";
	});
	var member = JSON.parse(localStorage.getItem('member'));
	$.ajax({
		url: APP.api_url + 'Wallet/index',
		data: {
			token: member['token'],
			uid: getUid()
		},
		success: function(data) {
			
			if(data.code == 200) {
				var json = data.data;
				yj.innerHTML += json.credit3;
				ye.innerHTML += json.credit2;
				jf.innerHTML += json.credit1;
				jf.innerHTML += '分';
			} else {
				console.log(data.msg);
			}
		}
	})
</script>
